import request from '@/utils/request'

// 查询巡检员列表
export function listIpqc(query) {
  return request({
    url: '/system/ipqc/list',
    method: 'get',
    params: query
  })
}

// 查询巡检员详细
export function getIpqc(id) {
  return request({
    url: '/system/ipqc/' + id,
    method: 'get'
  })
}

// 新增巡检员
export function addIpqc(data) {
  return request({
    url: '/system/ipqc',
    method: 'post',
    data: data
  })
}

// 修改巡检员
export function updateIpqc(data) {
  return request({
    url: '/system/ipqc',
    method: 'put',
    data: data
  })
}

// 删除巡检员
export function delIpqc(id) {
  return request({
    url: '/system/ipqc/' + id,
    method: 'delete'
  })
}
